/** 
 * toggle led via ^ function
 * hzheng, 2023.08.02
 */

void mydelay(void);

#define GPIO_ODR *((volatile unsigned int *)0x50006000)

void main() {
  while(1) {
    GPIO_ODR ^= 0x04;
    mydelay();
  }
}

void mydelay(void) {
  unsigned int i;
  for (i=0;i<10000000;i++) {
    __asm__ __volatile__("nop");
  }
}

